import Main from '@/components/main';
// 人员管理
export const peopleSetting = [
  {
    path: '/people',
    name: 'People',
    component: Main,
    meta: {
      title: '用户管理',
      icon: 'icon iconfont iconrenyuanguanli'
    },
    children: [  //  管理员
      {
        path: '/people/manager',
        name: 'PeopleManager',
        meta: {
          title: '用户列表',
          privilege: [
            { title: '列表', name: 'people-list' },
            { title: '查询', name: 'manager-query' },
            { title: '新增', name: 'manager-add' },
            { title: '编辑', name: 'manager-update' },
            { title: '删除', name: 'manager-delete' }
          ]
        },
        component: () => import('@/views/business/people/people-list.vue')
      },
      //  普通人员
      {
        path: '/people/people-list',
        name: 'PeopleList',
        meta: {
          title: '角色管理',
          privilege: [{ title: '人员列表', name: 'role-list' }]
        },
        component: () => import('@/views/business/people/people-list.vue')
      }
    ]
  }
];
